//
//  JGDropdownMenu.h
//  CustomTabBar
//
//  Created by JJetGu on 15/7/2.
//  Copyright (c) 2015年 JJetGu. All rights reserved.
//

#import <UIKit/UIKit.h>

@class JGDropdownMenu;

@protocol JGDropdownMenuDelegate <NSObject>

@optional
- (void)dropdownMenuDidDismiss:(JGDropdownMenu *)menu;
- (void)dropdownMenuDidShow:(JGDropdownMenu *)menu;

@end

@interface JGDropdownMenu : UIView
@property (nonatomic, weak) id<JGDropdownMenuDelegate> delegate;

+(instancetype)menu;

/**
 *  显示
 */
- (void)showFrom:(UIView *)from;
/**
 *  销毁
 *
 */
- (void)dismiss;

//-----------可以传view进来，也可以传控制器进来------------------
/**
 *  内容
 */
@property (nonatomic, strong) UIView *content;
/**
 *  内容控制器
 */
@property (nonatomic, strong) UIViewController *contentController;


@end
